//
//  CKHistoryViewController.m
//  ckjntiku
//
//  Created by Eileen Vivian on 2017/12/7.
//  Copyright © 2017年 Eileen Vivian. All rights reserved.
//

#import "CKHistoryViewController.h"

@interface CKHistoryViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (strong, nonatomic) NSArray *myArray;
@property (strong, nonatomic) NSArray *myImgeArray;
@property (weak, nonatomic) IBOutlet UISearchBar *searchBar;

@property (weak, nonatomic) IBOutlet UITableView *navTV;
@end

@implementation CKHistoryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   self.navigationItem.title = @"浏览历史";
    self.navTV.scrollEnabled = NO;
    self.myArray=@[@"金融理财师AFP",@"国际金融理财师CFP",@"中级经济师",@"国家理财规划师ChFP",@"基金从业资格AMAC",@"证券从业资格SAC",@"银行从业资格CCBP",@"CFA"];
    self.myImgeArray =@[@"souye_y",@"deal",@"log",@"member",@"set",@"souye_y",@"deal",@"log"];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.myArray.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ID"];
    if (!cell) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ID"];
    }
    cell.textLabel.text = self.myArray[indexPath.row];
    cell.imageView.image = [UIImage imageNamed:self.myArray[indexPath.row]];
    cell.textLabel.font = [UIFont systemFontOfSize:16];
    cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
